"""
Lesson 35
"""

"""
try: # dasturi kiritildi
  pass
exception: # xatolikda ishlaydi
  pass
else: #to'ri xolatda ishlaYDI 
  pass
finally:# xar qanday holatda ishlaydi
  pass

while True:
  try:
    num =int(input('raqmni kiritish:'))
    print(f'100/{num} ={100/num}')
    break
  except ZeroDivisionError:
    print('raqam 0 dan katta bo\'lishi kerak')
  except ValueError:
    print('Siz raqam kiritmadingiz.')
"""

while True:
  try:
    num = int(input('Raqamni kiritish:'))
    print(f'100{num} = {100/num}')
    break
  except Exception:
        print('Raqam 0 dan katta bo\'lishi kerak')
